-- GENERATED SPELL FOR [Remnant of Greed] --


function spell0_22438(pUnit, Event) --@Vertex Color Green,Self--
pUnit:FullCastSpellOnTarget(39168,pUnit)
pUnit:RegisterEvent('Sorts_22438', 614, 1)
end

function Sorts_22438(pUnit, Event)
local choix_sorts_22438 = math.random(0, 0)
if choix_sorts_22438 == 0 then
pUnit:RegisterEvent('spell0_22438', 1, 1)
end
end

function mob22438_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22438', math.random(1500, 3000), 1)
end

function mob22438_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22438_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22438_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22438, 1, 'mob22438_Action')
RegisterUnitEvent(22438, 2, 'mob22438_Leave')
RegisterUnitEvent(22438, 3, 'mob22438_Kill')
RegisterUnitEvent(22438, 4, 'mob22438_Die')
